package com.woniu.his.exception;

import com.woniu.his.result.ResultCode;


/**
 * @version: java version 1.8
 * @Author: ZJH
 * @description:
 * @date: 2022-11-01 19:49
 */

public class HisException extends RuntimeException{

    private Integer code;

    public HisException(String message, Integer code){
        super(message);
        this.code=code;
    }

    public HisException(ResultCode resultCode){
        super(resultCode.getMessage());
        this.code= resultCode.getCode();
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }
}
